from distutils.core import setup
import py2app

opts = {
    "py2app": {
        # i18n languages are loaded at runtime so py2exe won't find em
        "includes": "i18n.finnish, i18n.english",
        "optimize" : 2,
        "argv_emulation":True,
	"iconfile" : "flickfleck.icns",
        # "semi_standalone":True,
        # "bundle_files" : 1, # does not seem to work in my env
        "dist_dir": "packaging/macos",
    }
}
setup(name = "flickfleck", version = "1.0.0",
      author = "Jyke Tapani Jokinen",
      author_email = "jyke.t.jokinen(at)gmail.com",
      # packages = ["ui", "jpegops"],
      data_files =[('', ['GPL.txt', 'README.txt', 
                         'config.txt', 'flickfleck.ico'])
#                   ('tools', ['tools/jpegtran', 'tools/exiftool'])
                   ],

      url = 'http://flickfleck.googlecode.com/',
      download_url = 'http://flickfleck.googlecode.com/',
      options = opts,
      app=[{"script": 'flickfleck.py',
                "icon_resources" : [(1, "flickfleck.icns")],
               }])
